<!--#include file="Config.asp" -->
<!--#include file="HeadTop.asp"-->

<%
UrlID=int(request("UrlID"))
SQL="select * from plan_URL where ID="&UrlID
rs.open sql,conn,1,1
UrlTitle=Trim(RS("Title"))
MyUrl=Trim(RS("MyUrl"))
Info=Trim(RS("Info"))
ClassID=int(RS("ClassID"))
rs.close
%>

<table ID='TableMain' align='center' cellpadding="0" cellspacing="0" border="0">
<form method="post" action="UrlSave.asp?ActionType=ModUrlSave&UrlID=<%=UrlID%>">
<TR>
<TD width='8%'>属类：</TD>
<TD >
<SELECT NAME="ClassID">
<%
SQLtargetsort="select * from Plan_UrlClass where Type_FatherID<>0 order by Type_FatherID"
rs.open sqltargetsort,conn,1,1
For s=1 To rs.recordcount
%>
<OPTION VALUE="<%=rs("Type_id")%>"<%If int(ClassID)=int(rs("Type_id")) then%>selected<%End if%>><%=rs("Type_fatherid")%>.<%=rs("Type_id")%>.<%=trim(rs("Type_name"))%></OPTION>
<%
rs.moveNext
next
rs.close
%>
</SELECT></TD>
</TR>
<TR>
<TD >名称：</TD>
<TD ><input type="text" name="Title" value='<%=UrlTitle%>' size='90'></TD>
</TR>
<TR>
<TD >URL主地址：</TD>
<TD ><input type="text" name="MyUrl" value='<%=MyUrl%>' size='90'></TD>
</TR>
<TR>
<TD >备注：</TD>
<TD >
<!--  HTML 编辑器----->
<textarea name="Info" style="display:none" id="Info" ><%=Info%></textarea>
<iframe src="_Editor/ewebeditor.asp?id=Info&style=s_exampleremote" frameborder="0" scrolling="no" width="100%" height="320"></iframe>
<!--  HTML 编辑器引用--------->


</TD>
</TR>
<TR>
<TD >&nbsp;</TD>
<TD ><input type="submit" value='保存修改'></TD>
</TR>
</form>
</table>



<!-- log //////////////////////////////////////////////////////////////////////////////////////////////-->
<table ID='TableMain' align='center' cellpadding="1" cellspacing="1" border="0">
<TR bgcolor='#ddeeff'>
<TD>日志Type</TD>
<TD>内容</TD>
<TD>时间</TD>
</TR>
<FORM METHOD=POST ACTION="UrlSave.asp?ActionType=SaveAddLog&UrlID=<%=UrlID%>">
<TR  bgcolor='#f6f6f6'>
<TD><SELECT NAME="LogTypeID">
<%
sql="select * from Plan_URLLogType order by ID"
rs.open sql,conn,1,1
for ForUserID=1 to rs.recordcount
%>
<OPTION VALUE="<%=int(RS("id"))%>"><%=int(rs("ID"))%>.<%=Trim(rs("title"))%></option>
<%
rs.moveNext
next
rs.close
%>
</SELECT>
</TD>
<TD><input type="text" NAME="content" size='60'>&nbsp;<INPUT TYPE="submit" value='增加'></TD>
<TD>&nbsp;</TD>
</TR>
</FORM>
<%
SQL="select * from Plan_URLLog where UrlID="&UrlID&" and UserID='"&session("AnyPIM_userid")&"' order by id desc"
rs.open sql,conn,1,1
for ForUserID=1 to rs.recordcount
%>
<TR>
<TD style="border-bottom:#CCCCCC 1px solid;"><%=ShowURLLogName(int(RS("LogID")))%></TD>
<TD style="border-bottom:#CCCCCC 1px solid;"><%=RS("content")%></TD>
<TD style="border-bottom:#CCCCCC 1px solid;"><%=RS("DOtime")%></TD>
</TR>
<%
rs.moveNext
next
rs.close
%>
</TABLE>
<!-- #include file="foot.asp" -->
